<template>
  <div class="dashboard-container">
    <el-row>
      <el-col :span="12">
        <!-- 柱状图 -->
        <bar-label-rotation ref="barOption" /></el-col>
      <el-col :span="12">
        <!-- 饼图 -->
        <doughnut-chart /></el-col>
    </el-row>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import BarLabelRotation from './components/BarLabelRotation.vue'
import DoughnutChart from './components/DoughnutChart.vue'

export default {
  name: 'Dashboard',
  components: { BarLabelRotation, DoughnutChart },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

</style>
